<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>사내홈페이지 메인페이지</title>
<style>
#main{
	margin:0 auto;
	width:1600px;
}
#main2{
	margin:0 auto;
	width:1200px;
}
#top{
	width:1600px;
	height:100%;
	margin:auto;
	float:left;
	
}
#content{
	width:1200px;
	height:auto;
	margin:auto;
/* 	height:700px;
	overflow:auto; */
	margin-top:10px;
	margin-bottom:10px;
	float:left;
}
#bottom{
	clear:both;
	width:1600px;
	background-color: #7fcce5;
	/* float:left; */
	marin-top:10px;
	/* border: 1px solid #cccccc; */
	/* background-color: #666666;  /* #ededed */
}

</style>
</head>
<body>
<%
request.setCharacterEncoding("utf-8"); //한글깨지지 않게, 이건 파라미터 넘길때.. 
String inc_content = null;
String temp = null;


/*컨텐츠내용  */
temp = request.getParameter("inc_content");
if(temp == null || inc_content == ""){
	inc_content = (String)session.getAttribute("inc_content");
}else{
	session.setAttribute("inc_content", temp);
	inc_content = temp;
}
if(inc_content == null) inc_content = "./main/content.jsp";
%>

<div id="main">
	<div id="top">
		<%@include file='./main/top.jsp'%>
	</div>
	<div id="main2">
		<div id="content">
			<jsp:include page="<%=inc_content%>"/>
		</div>
		
	</div>
	<div style="clear:both;"></div>
	<div id="bottom">
			<%@include file='./main/bottom.jsp'%>
	</div>
</div>


</body>
</html>